#ifndef PM_PROJECT_H_INCLUDED
#define PM_PROJECT_H_INCLUDED

#include "pm/dbobject.h"

namespace pm {

class Project : public db::Object
{
	wxString   m_name;
	
public:
	static const wxString TABLE_NAME;
	
public:
	Project();
    Project(wxSQLite3ResultSet& res);

	const wxString& name() const { return m_name; }
	void name(const wxString& name) { m_name = name; }
	
	// DB
	virtual db::update_value_type prepare_insert(wxSQLite3Database& db);
	virtual db::update_value_type prepare_update(wxSQLite3Database& db);
};

typedef std::list<Project> ListProject;

} // namespace pm

#endif // PM_PROJECT_H_INCLUDED
